/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


function Gradient_Shadow( scene, sprite )
{
    this.scene = scene;
    this.sprite = sprite;
    this.Draw = function()
    {
//        this.scene.Context.rect(0,0,
//            this.scene.Context.canvas.clientWidth,
//            this.scene.Context.canvas.clientHeight);
        var grd = this.scene.Context.createRadialGradient(
            this.sprite.X+this.sprite.W/2, this.sprite.Y+this.sprite.H/2, 5,
            this.sprite.X+this.sprite.W/2, this.sprite.Y+this.sprite.H/2, 220 );
        grd.addColorStop(0,     'rgba(0,0,0,0.2)');
        grd.addColorStop(0.25,   'rgba(0,0,0,0.6)');
        grd.addColorStop(0.40,  'rgba(50,150,200,0.80)');
        grd.addColorStop(1,     'rgba(50,150,200,1.0)');
        this.scene.Context.fillStyle = grd;
//        this.scene.Context.fill();     
        this.scene.Context.fillRect(0,0,
            this.scene.Context.canvas.clientWidth,
            this.scene.Context.canvas.clientHeight);
        this.scene.Context.fillStyle = 'rgba(0,0,0,1)';
        
    };
}

